package com.juzipi.demo.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.juzipi.demo.mapper.RoleResourceMapper;
import com.juzipi.demo.pojo.RoleResource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleResourceService {


    @Autowired
    private RoleResourceMapper roleResourceMapper;

    public List<RoleResource> queryRoleResourceList(Long id) {

        return roleResourceMapper.selectList(new QueryWrapper<RoleResource>().lambda().eq(RoleResource::getResourceId, id));
    }
}
